﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DB.DataService;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                 ProductsService pr = new ProductsService();
                //bool b = pr.UpdateProductById(1,"áo", "Coongj hoa", "sad ", "sádas","sadasd","sdasd",12,23,false,23,34233);
                //MessageBox.Show(b.ToString());
                //DataSet ds = pr.GetCatalogByID(9);
                //var dt = new DataTable("MyTable");
                //dt.Columns.Add("ID");
                //dt.Columns.Add("Name");
                //dt.Columns.Add("Active");

                //dt.LoadDataRow(new[] { "ID1", "John", "True" }, true);
                //dt.LoadDataRow(new[] { "ID2", "Bill", "False" }, true);

                //string s = JsonConvert.SerializeObject(dt);

               

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                throw;
            }

        }




    }
}
